 package CurtainDesign.utils;

 import java.io.PrintStream;
 import java.net.URLEncoder;
 import java.security.MessageDigest;
 import org.apache.xmlbeans.impl.util.Base64;

 public class Encoder
 {
   private static long PID = 0L;

   public static String encryptPassword(String password)
   {
     String result = "";
     try {
       MessageDigest md = MessageDigest.getInstance("MD5");
       md.update(password.getBytes());
       String encPasswd = new String(Base64.encode(md.digest()));
       result = URLEncoder.encode(encPasswd);
     }
     catch (Exception e) {
       e.printStackTrace();
     }
     return result;
   }

   public static void main(String[] args)
   {
     System.out.println(0.947D);
   }
 }

/* Location:           C:\Users\Administrator\Desktop\奥特百叶窗\Shutter DesignerV3.1\CurtainDesign.jar
 * Qualified Name:     CurtainDesign.utils.Encoder
 * JD-Core Version:    0.6.0
 */